]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Remove some dead code
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 2 Aug 2013 02:48:33 +0000 (22:48 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 6 Aug 2013 14:36:36 +0000 (10:36 -0400)
notificationClosed is never set.

js/ui/messageTray.js

index bf333ec19851d8050929c2f7bc9c3158a6038ce4..41ae340d63f42836dc071a0ef859f34379ee434b 100644 (file)
@@ -1709,7 +1709,6 @@ const MessageTray = new Lang.Class({
         this._notificationHovered = false;
 
         this._keyboardVisible = false;
-        this._notificationClosed = false;
         this._notificationState = State.HIDDEN;
         this._notificationTimeoutId = 0;
         this._notificationExpandedId = 0;
@@ -2286,7 +2285,7 @@ const MessageTray = new Lang.Class({
         let notificationLockedOut = !hasNotifications && this._notification;
         let notificationMustClose = (this._notificationRemoved || notificationLockedOut ||
                                      (notificationExpired && this._userActiveWhileNotificationShown) ||
-                                     this._notificationClosed || this._traySummoned);
+                                     this._traySummoned);
         let canShowNotification = notificationsPending && this._trayState == State.HIDDEN && !this._traySummoned;
 
         if (this._notificationState == State.HIDDEN) {